package com.example.jeong.yuejian10.Service;



import com.example.jeong.yuejian10.Bean.AttentionBean;
import com.example.jeong.yuejian10.Bean.EnterTrainBean;
import com.example.jeong.yuejian10.Bean.IsAttentionBean;
import com.example.jeong.yuejian10.Bean.TrainBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;


public interface TrainService {
    //培训列表
    @GET("Train/getTrainlist")
    Call<List<TrainBean>> getTrainlist();

    @GET("Train/getTrainlista")
    Call<List<TrainBean>> getTrainlista();

    @GET("Train/getTrainlistb")
    Call<List<TrainBean>> getTrainlistb();

    @GET("Train/getTrainlistc")
    Call<List<TrainBean>> getTrainlistc();

    @GET("Train/getTrainlistd")
    Call<List<TrainBean>> getTrainlistd();

    //培训详情
    @GET("Train/getDetail")
    Call<TrainBean> getDetail(@Query("t_id") int t_id);

    //搜索培训
    @GET("Train/searchTrain")
    Call<List<TrainBean>> searchTrain(@Query("t_name") String t_name);

    //报名培训
    @GET("Train/addtrainn")
    Call<EnterTrainBean> addtrainn(@Query("u_id") int u_id,
                                   @Query("t_id") int t_id);


    //判断是否收藏
    @GET("Attention/getIsCollected")
    Call<IsAttentionBean> getIsCollected(@Query("u_id") int u_id,
                                         @Query("select_id") int select_id,
                                         @Query("flag") String flag
    );
    //关注培训
    @GET("Attention/userCollectTrain")
    Call<AttentionBean> userCollectTrain(@Query("u_id") int u_id,
                                         @Query("t_id") int t_id
    );

}